/**
 * 
 */
package com.microsoft.hsg.applications;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

/**
 * @author robmay
 *
 */
public class SecuredSimpleActions implements RequestHandler {

	/* (non-Javadoc)
	 * @see com.microsoft.hsg.applications.RequestHandler#processRequest(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
	 */
	public String processRequest(HttpServletRequest request,
			HttpServletResponse response) throws Exception
	{
		String pathInfo = request.getPathInfo();
		String servletPath = request.getServletPath();
		
		String view = null;
		
		HttpSession session = request.getSession();
		
		if (pathInfo.equals("/home")) {
			view = "/WEB-INF/home.jsp";
		} else {
			view = "/WEB-INF/home.jsp";
		}
		
		return view;
	}

	public boolean isAuthenticationRequired() {
		return true;
	}
	
	

}
